package com.tanjie.blackbean.system.admin.model.org;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 组织机构新增、修改参数
 *
 * @author tanjie
 * @since 2022-04-19
 */
@Data
@Schema(name = "OrgDTO", description = "组织机构")
public class OrgDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Schema(description = "主键")
    private String id;

    /**
     * 父主键
     */
    @Schema(description = "父主键")
    private String parentId;

    /**
     * 组织名称
     */
    @NotBlank(message = "组织名称(name)不能为空")
    @Schema(description = "组织名称")
    private String name;

    /**
     * 组织全称
     */
    @Schema(description = "组织全称")
    private String fullName;

    /**
     * 排序
     */
    @Schema(description = "排序")
    private Integer sort;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

}
